#ifndef BBH_CONFIG_H_
#define BBH_CONFIG_H_
#ifdef __cplusplus
extern "C"
{
#endif

#include "bbh_include.h"

struct bbh_config_s {
    int             level;
    int             free_time_ms;
    int             file_rolling_interval;
    int             file_rolling_size;
    int             file_rolling_keep_num;
    char            * pattern;
    char            * file_path;
    /////////////////////////////////////////////////
    char            * file_dir;
    char            * file_name;
    char            * file_extname;
};

int  bbh_config_create(bbh_config_t**pptr);
void bbh_config_init(bbh_config_t*_);
int  bbh_config_set(bbh_config_t*_, const char*key, const char*value);
void bbh_config_set_filepath(bbh_config_t*_, const char*filepath);
void bbh_config_clear(bbh_config_t*_);
void bbh_config_free(bbh_config_t*_);

#ifdef __cplusplus
}
#endif
#endif
